<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/10 0010
 * Time: 下午 2:16
 */

namespace app\sports_admin\service;

use app\sports_admin\model\WatchMonitoring as WatchMonitoringModel;
class WatchMonitoring extends Base
{
    /**
     * 获取检测信息
     */
    public static function listInfo()
    {
        $params = self::getHttpRequestPrograms();
        $params = $params->param();
        //第几页
        $page = intval($params['page']) ? intval($params['page']) : 1;
        //每页显示的条数
        $rows = intval($params['rows']) ? intval($params['rows']) : 15;
        //要排序的字段
        $sortName = trim($params['sort']);
        //升序或降序
        $sortOrder = trim($params['sortOrder']);
        $info = WatchMonitoringModel::listInfo($page,$rows,$sortName,$sortOrder);
        return json($info);
    }
}